package com.yangyu.pojo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;

/**
 * @author
 * @version V1.0
 * @Package com.yangyu.pojo
 * @date 2021/1/13 20:29
 */
@Data
public class Comment {
    /**
     * 主键ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 用户ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    /**
     * 文章ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long blogId;
    /**
     * 评论内容
     */
    private String content;
    /**
     * 父评论Id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private String parentId;
    /**
     * 评论的评论用户ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long toUid;
    /**
     * 评论级别
     */
    private String levelFlag;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;
}
